#include "GuiElement.h"
//
//GuiElement::GuiElement(SDL_Rect* location)
//{
//	SDL_Rect* inner= new SDL_Rect();
//	SDL_Rect* outer=new SDL_Rect();
//	bool isActive = false;
//
//	inner->h = location->h;
//	inner->w = location->w;
//	inner->x = location->x;
//	inner->y = location->y;
//	outer->h = inner->h+4;
//	outer->w = inner->w+4;
//	outer->x = inner->x-2;
//	outer->y = inner->y-2;
//
//}

GuiElement::GuiElement()
{
	inner = NULL;
	outer = NULL;
	isActive = false; 
	
}

GuiElement::~GuiElement()
{
	delete inner;
	delete outer;
}

 

bool GuiElement::isInBounds(int x, int y)
{ 
	if(x>=outer->x && x<=(outer->w + outer->x))
	{
		if(y>=outer->y && y<=(outer->h + outer->y))
		{
			return true;
		}
	}
	return false;

}